From a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 27 Jul 1993 08:33:44 +0000 Subject: [PATCH] (x_iconify_frame): Handle case where frame was invisible. --- src/xterm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 4005f5a603c..382c93ce82d 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4502,6 +4502,14 @@ x_iconify_frame (f) IconicState. */ x_wm_set_window_state (f, IconicState); + if (!FRAME_VISIBLE_P (f)) + { + /* If the frame was withdrawn, before, we must map it. */ + XMapWindow (XDISPLAY FRAME_X_WINDOW (f)); + if (FRAME_HAS_VERTICAL_SCROLL_BARS (f)) + XMapSubwindows (x_current_display, FRAME_X_WINDOW (f)); + } + f->async_iconified = 1; #else /* ! defined (HAVE_X11) */ XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f)); -- 2.30.2